package com.example.LinuxSpringBoot.dao;

import com.example.LinuxSpringBoot.domain.GoodsInfoBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper//指定这是一个操作数据库的mapper
@Repository
public interface GoodsInfoBeanDao {
    List<GoodsInfoBean> getAll();

    List<GoodsInfoBean> getAllByIds(List<Integer> ids);

    List<GoodsInfoBean> getByNameAndPrice(GoodsInfoBean goodsInfoBean);

    List<GoodsInfoBean> getByNameAndPrice2(GoodsInfoBean goodsInfoBean);

    List<GoodsInfoBean> getByNameAndPrice3(GoodsInfoBean goodsInfoBean);

    List<GoodsInfoBean> getByNameOrPrice(GoodsInfoBean goodsInfoBean);

    Integer upData(GoodsInfoBean goodsInfoBean);

    GoodsInfoBean getGoodsByGId(Integer goods_id);

}
